<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap 101 Template</title>
    <link href="./../lib/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../css/shopNav.css">
    <!-- [if lt IE 9]>
      <script src="./lib/html5shiv/html5shiv-printshiv.min.js></script>
      <script src="./lib/respond/respond.js"></script>
    <![endif] -->
</head>

<body>
    <div class="shop_header">
        <a href="../index.html" class="glyphicon glyphicon-menu-left black"></a>
        <p>商场导航</p>
        <a href="javascript:;" class="load">
            <span>
                <img src="../images/header_app.png " width="34" alt="">
            </span>
        </a>
    </div>
    <div class="shop_nav">
        <div class="container">
            <div class="row">
                <div class="col-xs-1"></div>
                <div class="col-xs-9">
                    <ul class="ulBox">
                    </ul>
                </div>
                <div class="col-xs-2"></div>
        </div>
           
    </div>
    <script src="./../lib/jquery/jquery.js"></script>
    <script src="./../lib/bootstrap/js/bootstrap.js"></script>
    <script src="../js/template-native.js"></script>
    <script type="text/template" id="navList">
        <%for(var i=0;i<result.length;i++){%>
            <li> 
                <a href="<%=#result[i].navHref%>"><img src="<%=#result[i].navImg%>" alt=""><%=result[i].navTitle%></a>
            </li>
        <% } %>
        
    </script>
    <script>
        $(function () {
            $.ajax({
                url: 'http://193.112.55.79:9090/api/getsitenav',
                dataType: 'json',
                success: function (res) {
                    console.log(res);
                    var xx = template("navList", res);
                    $('.ulBox').html(xx);
                }
            })
        })
    </script>
</body>

</html>